-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor Time #56
Refactor Time #56
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keeping the states
module concrete should resolve some problems in the Python world.
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #56 +/- ##
==========================================
- Coverage 97.85% 97.82% -0.04%
==========================================
Files 42 41 -1
Lines 17376 17398 +22
==========================================
+ Hits 17003 17019 +16
- Misses 373 379 +6 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
} | ||
|
||
#[test] | ||
fn test_unscaled_time_centuries_since_j2000() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would recommend the rstest crate for parametrising test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was going to ask about whether we wanted to standardise. I'll update them to rstest in a separate PR.
Resolves #55.
Refactors
Time
by making it generic over implementations of theTimeScale
marker trait.